import { defHttp, jsonHttp } from '@/utils/http/axios';
import { RolePageListGetResultModel, RoleListGetResultModel } from '../demo/model/systemModel';
import { BasicListResult, BasicDataResult } from '../model/baseModel';

enum Api {
  kqDeptList = '/hl/user/production/kqDeptList',
  kqDeptSave = '/hl/user/production/kqDeptSave',
  kqDeptRemove = '/hl/user/production/kqDeptRemove',
  kqDaKaLogList= '/hl/user/production/kqDaKaLogList',
  pcDaKaLogList= '/hl/user/production/pcDaKaLogList',
  getattcolumns= '/hl/user/production/getattcolumns',
  kqUserList= '/hl/user/production/kqUserList',
  importKqUser= '/hl/user/production/importKqUser',
  removeKqUser= '/hl/user/production/removeKqUser',
  kqUserSave= '/hl/user/production/kqUserSave',
  kqDeptSelect= '/hl/user/production/kqDeptSelect',

  ruleList= '/hl/user/production/ruleList',
  importKqRule='/hl/user/production/importKqRule',
  removeKqRule='/hl/user/production/removeKqRule',

  groupRuleList= '/hl/user/production/groupRuleList',
  settingGroupRule= '/hl/user/production/settingGroupRule',
  removeGroupRule= '/hl/user/production/removeGroupRule',

  userDaysCountTable='/hl/user/production/userDaysCountTable',

  getUserGroupIdIn='/hl/user/production/getUserGroupIdIn'

}
export const kqDeptList = (params?: any) =>
  defHttp.post<RolePageListGetResultModel[]>({ url: Api.kqDeptList, params });

export const kqDeptSave = (params?: any) =>
  defHttp.post<RolePageListGetResultModel[]>({ url: Api.kqDeptSave, params });
export const kqDeptRemove = (params?: any) =>
  defHttp.post<RolePageListGetResultModel[]>({ url: Api.kqDeptRemove, params });
export const kqDaKaLogList = (params?: any) =>
  defHttp.post<RolePageListGetResultModel[]>({ url: Api.kqDaKaLogList, params });

export const pcDaKaLogList = (params?: any) =>
  defHttp.post<RolePageListGetResultModel[]>({ url: Api.pcDaKaLogList, params });

export const getattcolumns = (params?: any) =>
  defHttp.post<RolePageListGetResultModel[]>({ url: Api.getattcolumns, params });

export const kqUserList = (params?: any) =>
  defHttp.post<RolePageListGetResultModel[]>({ url: Api.kqUserList, params });

export const importKqUser = (params?: any) =>
  jsonHttp.post<RolePageListGetResultModel[]>({ url: Api.importKqUser, params });


export const removeKqUser = (params?: any) =>
  defHttp.post<RolePageListGetResultModel[]>({ url: Api.removeKqUser, params });

export const kqDeptSelect = (params?: any) =>
  defHttp.post<RolePageListGetResultModel[]>({ url: Api.kqDeptSelect, params });

export const kqUserSave = (params?: any) =>
  defHttp.post<RolePageListGetResultModel[]>({ url: Api.kqUserSave, params });


export const importKqRule = (params?: any) =>
  jsonHttp.post<RolePageListGetResultModel[]>({ url: Api.importKqRule, params });

export const removeKqRule = (params?: any) =>
  defHttp.post<RolePageListGetResultModel[]>({ url: Api.removeKqRule, params });

export const ruleList = (params?: any) =>
  defHttp.post<RolePageListGetResultModel[]>({ url: Api.ruleList, params });

export const groupRuleList = (params?: any) =>
  defHttp.post<RolePageListGetResultModel[]>({ url: Api.groupRuleList, params });
export const settingGroupRule = (params?: any) =>
  defHttp.post<RolePageListGetResultModel[]>({ url: Api.settingGroupRule, params });
export const removeGroupRule = (params?: any) =>
  defHttp.post<RolePageListGetResultModel[]>({ url: Api.removeGroupRule, params });


export const userDaysCountTable = (params?: any) =>
  jsonHttp.post<RolePageListGetResultModel[]>({ url: Api.userDaysCountTable, params });

export const getUserGroupIdIn = (params?: any) =>
  defHttp.post<RolePageListGetResultModel[]>({ url: Api.getUserGroupIdIn, params });

